<template>
    <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" v-show="show">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"
                            @click="isShowModal=!isShowModal">×</span></button>
                    <h4 class="modal-title" id="exampleModalLabel">确认框</h4>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                            <label for="message-text" class="control-label">确定要删除<strong class="control-label-name"
                                    style="color:blue">{{ name }}</strong>吗？</label>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal" @click="back">返回</button>
                    <a href="###" class="delete-a"><button type="button" class="btn btn-primary"
                            @click="realDel()">确认</button></a>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: '',
        components: {

        },
        props: {
            show: {
                type: Boolean,
                default: false
            },
            name: {
                type: String
            }
        },
        data() {
            return {

            };
        },
        methods: {
            back() {
                this.$emit('back')
            },
            realDel() {
                this.$emit('del')
            }
        },
        watch: {

        },
        created() {

        },
        mounted() {

        },
        computed: {

        },
    };
</script>

<style scoped lang="less">

</style>